<?php
/*
*天气预报的小偷程序 第16讲
*/

//ereg  eregi

$url = "http://www.weather.com.cn/weather/101020100.shtml";
$fp = @fopen($url,"r") or die("超时");
$fcontents = file_get_contents($url);
preg_match("/<title>(.*)<\/title>/",$fcontents,$acontents);
preg_match("/<img src=\"/",$fcontents,$img);
//$img[1] = str_replace("src=\","http://www.weather.com.cn",);





?>